#ifndef ARITHCODERTEST_H
#define ARITHCODERTEST_H

#include <QtGui/QMainWindow>
#include <QFile>
#include "ui_arithcodertest.h"
#include "tabledatasource.h"

class ArithCoderTest : public QMainWindow
{
	Q_OBJECT

	public:
		ArithCoderTest(QWidget *parent = 0, Qt::WFlags flags = 0);
		~ArithCoderTest();

	public slots:
		void openFile();
		void encodeFile();
		void decodeFile();

	private:
		Ui::ArithCoderTestClass ui;
		TableDataSource dataSource;
		QString openedFilename;
		QFile openedFile;

		int fileSize(FILE* file);
};

#endif // ARITHCODERTEST_H
